package dao.account;

import domain.Account;
import domain.User;

import java.util.List;

public interface AccountDao {
    /**
     * 添加支出
     * @param info
     * @param out
     * @param time
     * @param username
     * @return int
     * @author 夏添
     * @date 2020/9/23 17:26
     */
    public int addAccountOut(String info,float out,String time,String username) throws Exception;

    /**
     * 添加收入
     * @param info
     * @param come
     * @param time
     * @param username
     * @return int
     * @author 夏添
     * @date 2020/9/23 17:26
     */
    public int addAccountCome(String info,float come,String time,String username) throws Exception;

    /**
     * 获取明细列表
     * @param username
     * @return List<User>
     * @author 夏添
     * @date 2020/9/23 16:03
     */
    public List<Account> getAccountList(String username) throws Exception;

    /**
     * 统计支出
     * @param username
     * @return int
     * @author 夏添
     * @date 2020/9/23 17:26
     */
    public float countOut(String username) throws Exception;

    /**
     * 统计收入
     * @param username
     * @return int
     * @author 夏添
     * @date 2020/9/23 17:26
     */
    public float countCome(String username) throws Exception;

    /**
     * 月统计支出
     * @param username,date
     * @return float
     * @author 夏添
     * @date 2020/11/12 17:26
     */
    public float MonthCountOut(String username,String date) throws Exception;

    /**
     * 月统计收入
     * @param username,date
     * @return float
     * @author 夏添
     * @date 2020/11/12 17:26
     */
    public float MonthCountCome(String username,String date) throws Exception;

}
